//
//  DYZCarSourceCell.m
//  DYZCars
//
//  Created by jdc on 16/8/19.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "DYZCarSourceCell.h"

@interface DYZCarSourceCell ()
@property (weak, nonatomic) IBOutlet UILabel *carModelLable;
@property (weak, nonatomic) IBOutlet UILabel *carDetalLable;
@property (weak, nonatomic) IBOutlet UILabel *sellerNameLable;
@property (weak, nonatomic) IBOutlet UILabel *detalPriceLable;
@property (weak, nonatomic) IBOutlet UILabel *guidePriceLable;
@property (weak, nonatomic) IBOutlet UILabel *creatTimeLable;

@end
@implementation DYZCarSourceCell
/**
 *  赋值
 *
 *  @param selected <#selected description#>
 *  @param animated <#animated description#>
 */
-(void)setCarsModel:(DYZNewCarsModel *)carsModel{
    _carsModel = carsModel;
    self.carModelLable.text = carsModel.carModel;
        self.detalPriceLable.text = [NSString stringWithFormat:@"%zd",carsModel.dealPrice];
        self.carDetalLable.text = [NSString stringWithFormat:@"%@|%@/%@|%@",carsModel.carType,carsModel.outsideColor,carsModel.insideColor,carsModel.city];
        self.guidePriceLable.text = [NSString stringWithFormat:@"%zd/%@",carsModel.guidePrice,carsModel.disPrice];
        self.sellerNameLable.text = [NSString stringWithFormat:@"%@",carsModel.sellerName];
        self.creatTimeLable.text = [NSString stringWithFormat:@"%@",carsModel.createTimeHM];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
